package fr.neyb.bernouilli.problem002;

public class Entry {

	public static void main(String... args) {
		int result = 0;
		int small = 0;
		int big = 1;

		while (big < 4000000) {
			int tmp = big;
			if (big % 2 == 0)
				result += big;
			big += small;
			small = tmp;
		}

		System.out.println(result);
	}

}
